package org.mikeliu.exp1.exp2;

import java.util.Scanner;

public class Exp2 {
	public static void main(String[] args) {
		double a;
		double b;
		double c;
		Scanner scanner=new Scanner(System.in);
		while(scanner.hasNext())
		{
			a=scanner.nextDouble();
			b=scanner.nextDouble();
			c=Math.sqrt(a*a+b*b);
			System.out.printf("%.2f\n", c);
		}
		scanner.close();
	}
}
